package cn.doit.scala.day01.datatype

/**
 * @DATE 2021/12/24/9:26
 * @Author MDK
 * @Version 2021.2.2
 *  val是表示值的,必须要先赋值,是常量
 *  var是变量,变量在定义的时候一定要赋值
 */
object C01_DataType01 {
  def main(args: Array[String]): Unit = {
    val id = 123
    val name = "zss"
    val gender = "F"
    val age = 23

    var id1: Int = 111
    var name2:String = "lss"
    println(name2.isInstanceOf[String])

  }
}
